package com.online.edu.course.entity.Vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel("列表封装类")
public class CategoryVo {

    @ApiModelProperty("自身Id")
    private Long id;

    @ApiModelProperty("父Id")
    private Long parentId;

    @ApiModelProperty("类别名称")
    private String categoryName;

    @ApiModelProperty("状态(1:正常，0:禁用)")
    private Integer statusId;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("子节点数据")
    private List<CategoryVo> children;
    //新增内容
    @ApiModelProperty("子节点Id")
    private Long childrenId;

    @ApiModelProperty("父节点数据")
    private CategoryVo parent;
}
